import { defineStore } from "pinia";
 
export const useCounter = defineStore("counter", {
  state: () => {
    return {
      counter: 0,
    };
  },
  getters: {
    doubleCounter: (state) => {
      return state.counter * 2;
    },
  },
  actions: {
    increment() {
        debugger
      this.counter++;
    },
  },
});